package com.rabbiter.service.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.rabbiter.entity.TicketApprovalHistory;
import java.util.List;
import com.rabbiter.mapper.TicketApprovalHistoryMapper;
import com.rabbiter.service.TicketApprovalHistoryService;
@Service
public class TicketApprovalHistoryServiceImpl implements TicketApprovalHistoryService{

    @Resource
    private TicketApprovalHistoryMapper ticketApprovalHistoryMapper;

    @Override
    public int deleteByPrimaryKey(Integer historyId) {
        return ticketApprovalHistoryMapper.deleteByPrimaryKey(historyId);
    }

    @Override
    public int insert(TicketApprovalHistory record) {
        return ticketApprovalHistoryMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TicketApprovalHistory record) {
        return ticketApprovalHistoryMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TicketApprovalHistory record) {
        return ticketApprovalHistoryMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TicketApprovalHistory record) {
        return ticketApprovalHistoryMapper.insertSelective(record);
    }

    @Override
    public TicketApprovalHistory selectByPrimaryKey(Integer historyId) {
        return ticketApprovalHistoryMapper.selectByPrimaryKey(historyId);
    }

    @Override
    public int updateByPrimaryKeySelective(TicketApprovalHistory record) {
        return ticketApprovalHistoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TicketApprovalHistory record) {
        return ticketApprovalHistoryMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TicketApprovalHistory> list) {
        return ticketApprovalHistoryMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TicketApprovalHistory> list) {
        return ticketApprovalHistoryMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TicketApprovalHistory> list) {
        return ticketApprovalHistoryMapper.batchInsert(list);
    }

}
